// src/main/java/org/zachary/creditbusiness/hotel/controller/dto/HotelFilterCriteria.java
package org.zachary.creditbusiness.hotel.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.NumberFormat;

import java.math.BigDecimal;

@Data
@ApiModel("酒店列表筛选参数")
public class HotelFilterCriteria {
    @ApiModelProperty("最低评分，空则不筛")
    private Float minScore;

    @ApiModelProperty("位置关键字，空则不筛；匹配 location 或 nearby")
    private String location;

    @ApiModelProperty("价格区间下限，空则不筛")
    @NumberFormat(pattern = "#0.##")
    private BigDecimal minPrice;

    @ApiModelProperty("价格区间上限，空则不筛")
    @NumberFormat(pattern = "#0.##")
    private BigDecimal maxPrice;
}